			<!-- PROPERTY TYPE OPTION-->
			<div class="option-bar">
			        <label class="option-title"><?php _e('Type','locality'); ?></label>
			        <select name="type" id="select-type" class="search-select">
			              <?php
			                $prop_type_terms = get_terms("property-type");
							
			                $count = count($prop_type_terms);
							
			                $property_type = "";
							
							if ( $count > 0 )
							{
			                     if(!empty($_GET['type']))
			                     {
			                            $property_type = $_GET['type'];
			                     }
								 
			                     foreach ( $prop_type_terms as $prop_type_term ) 
			                     {
			                            if(!empty($property_type) && $property_type == $prop_type_term->slug)
			                            {
			                                echo '<option value="'.$prop_type_term->slug.'" selected="selected">'.$prop_type_term->name.'</option>';
			                            }
			                            else
			                            {
			                                echo '<option value="'.$prop_type_term->slug.'">'.$prop_type_term->name.'</option>';
			                            }
			                     }											 
			                }
			                
							if(!empty($property_type) && $property_type == 'any')
							{
								echo '<option value="any" selected="selected">'. __( 'Any', 'locality').' </option>';
							}
							else if(!empty($property_type))
							{								 
								echo '<option value="any">'. __( 'Any', 'locality').'</option>';			                   
							}	
							else
							{
								echo '<option value="any" selected="selected">'. __( 'Any', 'locality').' </option>';
							}
										                
							?>                                          
			                
			        </select>
			</div><!-- CLOSING PROPERTY TYPE -->

			<!-- BEDS OPTION--> 
			<div class="option-bar">
			        <label class="option-title"><?php _e('Beds','locality'); ?></label>
			        <select name="beds" id="select-prices" class="search-select">
			              <?php
						  $bed = 0;
			              if(!empty($_GET['beds']))
			               {
			                    $bed = $_GET['beds'];
			               }
			                 
			              for($i=1;$i<=8;$i++)
			                {
			                    if($bed == $i)
			                    {
			                        echo '<option value="'.$i.'" selected="selected">'.$i.'</option>';
			                    }
			                    else
			                    {
			                        echo '<option value="'.$i.'">'.$i.'</option>';
			                    }
			                }
			                
			                if($bed == 'any')
			                {
			                    echo '<option value="any" selected="selected">'. __( 'Any', 'locality').'</option>';
			                }
			                else
			                {
			                    echo '<option value="any">'. __( 'Any', 'locality').'</option>';
			                }
			              ?>
			        </select>
			</div><!-- CLOSING OF BEDS OPTION -->

			<!-- BATHS OPTION-->
			<div class="option-bar">
			        <label class="option-title"><?php _e('Baths','locality'); ?></label>
			        <select name="baths" id="select-region" class="search-select">
			              <?php
						    $bath = 0;
			                if(!empty($_GET['baths']))
			                {
			                    $bath = $_GET['baths'];
			                }
			                      
			                for($i=1;$i<=8;$i++)
			                {
			                    if($bath == $i)
			                    {
			                        echo '<option value="'.$i.'" selected="selected">'.$i.'</option>';
			                    }
			                    else
			                    {
			                        echo '<option value="'.$i.'">'.$i.'</option>';
			                    }
			                }
			                
			                if($bath == 'any')
			                {
			                    echo '<option value="any" selected="selected">'.__( 'Any', 'locality').'</option>';
			                }
			                else
			                {
			                    echo '<option value="any">'.__( 'Any', 'locality').'</option>';
			                }
			                ?>
			              
			        </select>
			</div><!-- CLOSING OF BATHS -->									
			
			<!-- PROPERTY CITY OPTION-->
			<div class="option-bar">
			       <label class="option-title"><?php _e('City','locality'); ?></label>
			        <select name="city" id="select-location" class="search-select">
			              <?php
						  	$city = "";
			                if(!empty($_GET['city']))
			                 {
			                     $city = $_GET['city'];
			                 }
			                 
			                $prop_city_terms = get_terms("property-city");
			                $count = count($prop_city_terms);
			                if ( $count > 0 )
			                {																								
			                     foreach ( $prop_city_terms as $prop_city_term ) 
			                     {
			                         if($city == $prop_city_term->slug)
			                         {
			                            echo '<option value="'.$prop_city_term->slug.'" selected="selected">'.$prop_city_term->name.'</option>';
			                         }
			                         else
			                         {
			                            echo '<option value="'.$prop_city_term->slug.'">'.$prop_city_term->name.'</option>';
			                         }
			                     }												 											
			                }
			                     
			                 if($city == 'any' || empty($city))
			                 {
			                    echo '<option value="any" selected="selected">'.__( 'Any', 'locality').'</option>';
			                 }
			                 else
			                 {
			                    echo '<option value="any">'.__( 'Any', 'locality').'</option>';
			                 }											 
			                
			                ?>
			        </select>
			</div><!-- CLOSING PROPERTY CITY OPTION -->
			
			<div class="option-bar">
			       <label class="option-title"><?php _e('Status','locality'); ?></label>
			        <select name="status" id="select-status" class="search-select">
			              <?php
						  	$status = "";
			                if(!empty($_GET['status']))
			                 {
			                     $status = $_GET['status'];
			                 }
			                 			               
							 if($status == "for-rent")
							 {
								echo '<option value="for-rent" selected="selected">'.__('For Rent','locality').'</option>';
							 }
							 else
							 {
								echo '<option value="for-rent" >'.__('For Rent','locality').'</option>';
							 }
							 
							 if($status == "for-sale")
							 {
								echo '<option value="for-sale" selected="selected">'.__('For Sale','locality').'</option>';
							 }
							 else
							 {
								echo '<option value="for-sale" >'.__('For Sale','locality').'</option>';
							 }
							 
							 if($status == "new")
							 {
								echo '<option value="new" selected="selected">'.__('New','locality').'</option>';
							 }
							 else
							 {
								echo '<option value="new" >'.__('New','locality').'</option>';
							 }
							 
							 if($status == "onshow")
							 {
								echo '<option value="onshow" selected="selected">'.__('On Show','locality').'</option>';
							 }
							 else
							 {
								echo '<option value="onshow" >'.__('On Show','locality').'</option>';
							 }	
							 
							 if($status == "sold")
							 {
								echo '<option value="sold" selected="selected">'.__('Sold','locality').'</option>';
							 }
							 else
							 {
								echo '<option value="sold" >'.__('Sold','locality').'</option>';
							 }
							 
							 if($status == "reduced")
							 {
								echo '<option value="reduced" selected="selected">'.__('Reduced','locality').'</option>';
							 }
							 else
							 {
								echo '<option value="reduced" >'.__('Reduced','locality').'</option>';
							 }
							 
							 if($status == "none")
							 {
								echo '<option value="none" selected="selected">'.__('None','locality').'</option>';
							 }
							 else
							 {
								echo '<option value="none" >'.__('None','locality').'</option>';
							 }		              
			                 
			                 if($status == 'any' || empty($status))
			                 {
			                    echo '<option value="any" selected="selected">'.__( 'Any', 'locality').'</option>';
			                 }
			                 else
			                 {
			                    echo '<option value="any">'.__( 'Any', 'locality').'</option>';
			                 }											 
			                
			                ?>
			        </select>
			</div>

			<!-- PROPERTY PRICE RANGE BAR OPTION-->
			<div id="search-box">
			        <label class="option-title"><?php _e('Price Range','locality'); ?></label>
			        <input type="text" id="amount" />
			        <input type="hidden" id="min-price" name="min_price" value=""  />
			        <input type="hidden" id="max-price" name="max_price" value="" />
			</div>
			
			<div class="price-slider-wrapper">
					<div id="slider-range"></div>
			</div><!-- CLOSING PRICE RANGE -->

			<!-- SEARCH BUTTON -->
			<div class="search-btn-wrapper">
			        <input type="submit" value="<?php _e('Search','locality'); ?>" class="advance-search-btn" />
			</div>